package com.example.aop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * ClassName: AspectDemo2
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2023/12/2 12:02
 * @Version 1.0
 */
@Aspect
@Slf4j
//@Component
@Order(2)
public class AspectDemo2 {
    @Before("com.example.aop.aspect.AspectDemo.point()")
    public void doBefore() {
        log.info("执行AspectDemo Before2...");
    }

    @After("com.example.aop.aspect.AspectDemo.point()")
    public void doAfter() {
        log.info("执行AspectDemo After2...");
    }
}
